/**
 *  系统设置模块的路由
 */
import Layout from '@/layout'

const systemSetting = {
  path: '/systemSetting',
  component: Layout,
  redirect: '/systemSetting/user',
  alwaysShow: true, // will always show the root menu
  meta: {
    title: "系统管理",
    icon: "dashboard"

  },
  children: [{
    path: 'plugin',
    component: (resolve) => require(['@/views/plugin/index'], resolve),
    name: 'Plugin',
    meta: {
      title: '插件管理',
      requireAuth: true,
      authRole: ['superadmin', 'gadmin']
    }
  }, {
    path: 'user',
    component: (resolve) => require(['@/views/system/user/index'], resolve),
    name: 'User',
    meta: {
      title: '用户管理',
      requireAuth: true,
      authRole: ['superadmin', 'gadmin']
    }
  }, {
    path: 'role',
    component: (resolve) => require(['@/views/system/role/index'], resolve),
    name: 'Role',
    meta: {
      title: '角色管理',
      requireAuth: true,
      authRole: ['gadmin']
    }
  }, {
    path: 'org',
    component: (resolve) => require(['@/views/system/org/index'], resolve),
    name: 'Org',
    meta: {
      title: '机构管理',
      requireAuth: true,
      authRole: ['gadmin']
    }
  }]
}
export default systemSetting
